import 'dart:math';

import 'package:flutter/material.dart';

// 公用视频进度条
class XinDongCommonVideoPlayerProgressIndicator extends LinearProgressIndicator {
  final double progress;

  XinDongCommonVideoPlayerProgressIndicator({super.key, required this.progress})
      : super(
          value: min(1.0, max(0.0, progress)),
          backgroundColor: Colors.black12,
          valueColor: const AlwaysStoppedAnimation<Color>(Colors.grey),
        );
}
